package cn.tedu.charging.order.client;

import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单调用车主服务的接口入口
 * 底层代理实现http请求拼接基于类注解 和接口方法注解
 */
@FeignClient(name="charging-user")
public interface UserClient {
    @GetMapping("/user/charge/check")
    JsonResult<Boolean> checkUserCharge(
            @RequestParam("userId") Integer userId,
            @RequestParam("gunId") Integer gunId);
}
